<template>
  <text class="icon-likes" :class="{'liked': liked}">赞</text>
</template>

<script>
export default {
  name: "likes",
  props: {
    liked: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {}
  },
  computed: {},
  methods: {},
  watch: {},
} 
</script>

<style lang="scss" scoped>
.icon-likes {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 9px;
  margin-right: 10px;
  background-color: #000000;
  color: #ffffff;
  font-size: 12px !important;
  font-weight: bold;
  text-align: center;
  line-height: 22px;

  &.liked {
    background-color: #00a679;
  }
}
</style>